package com.koudai.finance.dao;

import com.koudai.finance.entity.User;
import com.koudai.finance.requestparam.BaseParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Description: UserDao
 * @author: ls
 * @Date: 2020-07-14 15:22:46
 */
@Mapper
public interface UserDao {

    int saveUser(User user);

    Integer updateUserById(User user);

    User getUserById(Integer userId);

    Integer getUserIdByOpenId(String openId);

    Integer checkUserExist(String phone);

    Integer getUserByPhone(String phone);

    Integer checkUserExistById(Integer tokenUserId);

}
